<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>

		<title>Welcome To iWeb OS</title>
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="cache-control" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
		<meta http-equiv="description" content="This is my page">
		<link rel="shortcut icon" href="<%=request.getContextPath()%>/portal/resources/favicon.ico" />
		<link rel="icon" href="<%=request.getContextPath()%>/portal/resources/favicon.ico" />
	</head>
	<script type="text/javascript">
		function login()
		{
			var username = document.getElementById("userName").value;
			var userpass = document.getElementById("userPass").value;
			if(username.length == 0)
			{
				alert("请填写用户名称");
			}
			if(userpass.length == 0)
			{
				alert("请填写用户密码");
			}
			window.open("<%=request.getContextPath()%>/login.action?userName=" + username + "&userPass=" + userpass);
			window.opener = null;
			window.close();
		}
	</script>
	<body style="text-align: center">
		<s:form action="login" method="post">
			<table>
				<tr>
					<td>username：</td>
					<td><input type="text" id="userNum" name="userBean.userNum"></td>
				</tr>
				<tr>
					<td>userpass：</td>
					<td><input type="password" id="userPass" name="userBean.userPass"></td>
				</tr>
				<tr>
					<td colspan="2" align="center">
						<input type="submit" value="Login">
					</td>
				</tr>
			</table>
		</s:form>
	</body>
</html>